home *** CD-ROM | disk | FTP | other *** search
-
-
-
- XXXXmmmmTTTTeeeexxxxttttGGGGeeeettttSSSSuuuubbbbssssttttrrrriiiinnnngggg((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmTTTTeeeexxxxttttGGGGeeeettttSSSSuuuubbbbssssttttrrrriiiinnnngggg((((3333XXXX))))
-
-
-
- NNNNAAAAMMMMEEEE
- _X_m_T_e_x_t_G_e_t_S_u_b_s_t_r_i_n_g - A Text function that retrieves a copy
- of a portion of the internal text buffer
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- #include <Xm/Text.h>
-
- int XmTextGetSubstring (wwwwiiiiddddggggeeeetttt,,,, ssssttttaaaarrrrtttt,,,, nnnnuuuummmm____cccchhhhaaaarrrrssss,,,, bbbbuuuuffffffffeeeerrrr____ssssiiiizzzzeeee,,,, bbbbuuuuffffffffeeeerrrr)
- _W_i_d_g_e_t wwwwiiiiddddggggeeeetttt;
- _X_m_T_e_x_t_P_o_s_i_t_i_o_nssssttttaaaarrrrtttt;
- _i_n_t nnnnuuuummmm____cccchhhhaaaarrrrssss;
- _i_n_t bbbbuuuuffffffffeeeerrrr____ssssiiiizzzzeeee;
- _c_h_a_r *bbbbuuuuffffffffeeeerrrr;
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- _X_m_T_e_x_t_G_e_t_S_u_b_s_t_r_i_n_g retrieves a copy of a portion of the
- internal text buffer of a Text widget. The function copies
- a specified number of characters from a given start position
- in the internal text buffer into a buffer provided by the
- application. A NULL terminator is placed at the end of the
- copied data.
-
- The size of the required buffer depends on the maximum
- number of bytes per character (_M_B__C_U_R__M_A_X) for the current
- locale. _M_B__C_U_R__M_A_X is a macro defined in _s_t_d_l_i_b._h. The
- buffer should be large enough to contain the substring to be
- copied and a NULL terminator. Use the following equation to
- calculate the size of buffer the application should provide:
-
- bbbbuuuuffffffffeeeerrrr____ssssiiiizzzzeeee = (nnnnuuuummmm____cccchhhhaaaarrrrssss * _M_B__C_U_R__M_A_X) + 1
-
- wwwwiiiiddddggggeeeetttt
- Specifies the Text widget ID.
-
- ssssttttaaaarrrrtttt
- Specifies the beginning character position from which
- the data will be retrieved. This is an integer number
- of characters from the beginning of the text buffer.
- The first character position is 0.
-
- nnnnuuuummmm____cccchhhhaaaarrrrssss
- Specifies the number of characters to be copied into
- the provided buffer.
-
- bbbbuuuuffffffffeeeerrrr____ssssiiiizzzzeeee
- Specifies the size of the supplied buffer in bytes.
- This size should account for a NULL terminator.
-
- bbbbuuuuffffffffeeeerrrr
- Specifies the character buffer into which the internal
- text buffer will be copied.
-
-
-
-
- Page 1 (printed 11/11/03)
-
-
-
-
-
-
- XXXXmmmmTTTTeeeexxxxttttGGGGeeeettttSSSSuuuubbbbssssttttrrrriiiinnnngggg((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmTTTTeeeexxxxttttGGGGeeeettttSSSSuuuubbbbssssttttrrrriiiinnnngggg((((3333XXXX))))
-
-
-
- For a complete definition of Text and its associated
- resources, see _X_m_T_e_x_t(_3_X).
-
- RRRREEEETTTTUUUURRRRNNNN VVVVAAAALLLLUUUUEEEE
- _X_m_C_O_P_Y__S_U_C_C_E_E_D_E_D
- The function was successful.
-
- _X_m_C_O_P_Y__F_A_I_L_E_D
- The function failed because it was unable to copy the
- specified number of characters into the buffer
- provided. The buffer size may be insufficient. The
- contents of bbbbuuuuffffffffeeeerrrr are undefined.
-
- _X_m_C_O_P_Y__T_R_U_N_C_A_T_E_D
- The requested number of characters extended beyond the
- internal buffer. The function copied characters
- between ssssttttaaaarrrrtttt and the end of the widget's buffer and
- terminated the string with a NULL terminator; fewer
- than nnnnuuuummmm____cccchhhhaaaarrrrssss characters were copied.
-
- RRRREEEELLLLAAAATTTTEEEEDDDD IIIINNNNFFFFOOOORRRRMMMMAAAATTTTIIIIOOOONNNN
- _X_m_T_e_x_t(_3_X) and _X_m_T_e_x_t_G_e_t_S_u_b_s_t_r_i_n_g_W_c_s(_3_X).
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Page 2 (printed 11/11/03)
-
-
-
-